package Buffer;

import java.io.*;

public class BufferedStreamDemo3 {
    public static void main(String[] args) throws IOException {

     /*   BufferedWriter bw = new BufferedWriter(new FileWriter("funCode\\box.txt"));

        for (int i = 0; i < 10; i++) {
            bw.write("hello nihuan");
            bw.newLine();
            // 一班要刷新一下1哦
            bw.flush();
        }

        bw.close();*/

        BufferedReader br = new BufferedReader(new FileReader("funCode\\bos.txt"));

        String s = br.readLine();
        System.out.println(s);
        String s1 = br.readLine();
        System.out.println(s1);
    }
}
